/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package ucm;

import model.Status_Model;
import view.Te_Set_View;

/**
 *
 * @author 马凯
 */
public class Setting_UC {
    private static Setting_UC su;
    private Te_Set_View tst;
    private boolean correct = true;
    private String subject_ID;
    
    public static Setting_UC getInstance(){
        if(su==null){
            su = new Setting_UC();
        }
        return su;
    }
    
    public void run(){
        tst = Te_Set_View.getInstance(); tst.setVisible(true);
//        if(correct==true){
//            SignIn_UC.getInstance(this).run();
//            this.subject_ID = tst.getSetModel().getSub_TF().getText();
//            
//        }else{
//            
//        }
    }
    
    public Status_Model getStatusModel(){
        Status_Model sm = new Status_Model();
        sm.setLesson_ID(this.subject_ID);
        return sm;
    } 
}
